package cn.cdnsu.gift.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseQuery {
    //当前页数
    private Integer currentPage;
    //数据条数
    private Integer pageSize;
    //高级查询的参数keyword
    private String keyword;

    public Integer getStart(){
        return (currentPage-1)*pageSize;
    }
}
